﻿using System;
using System.Collections.Generic;

using System.Web;

/// <summary>
/// Summary description for B_PurchaseOrder
/// </summary>
namespace Bestlife.ERP.BusinessRules
{
    public class B_PurchaseOrder
    {
        public B_PurchaseOrder()
        {
            //

            // TODO: Add constructor logic here
            //
        }

        public static decimal getprice(string proname)
    {
        return Bestlife.ERP.DataAccess.D_PurchaseOrder.getprice(proname);
    }

        public static decimal linetot(decimal qty, decimal unitval)
        {
            return Bestlife.ERP.DataAccess.D_PurchaseOrder.linetotal(qty, unitval);
        }

        public static Boolean insert(Bestlife.ERP.Entities.E_PurchaseOrder order,string user)
        {
            return Bestlife.ERP.DataAccess.D_PurchaseOrder.insert(order,user);
        }

        public static void insertorder(Bestlife.ERP.Entities.E_PurchaseOrder order)
        {
             Bestlife.ERP.DataAccess.D_PurchaseOrder.insertorder(order);
        }

        public static void insertsupp(Bestlife.ERP.Entities.E_PurchaseOrder supp,string user)
        {
            Bestlife.ERP.DataAccess.D_PurchaseOrder.insertsupporder(supp, user);
        }

        public static Boolean total(Bestlife.ERP.Entities.E_PurchaseOrder tot,string user)
        {
           return Bestlife.ERP.DataAccess.D_PurchaseOrder.total(tot,user);
        }
        public static Bestlife.ERP.Entities.E_PurchaseOrder getbvpv(Bestlife.ERP.Entities.E_PurchaseOrder pro)
        {
            return Bestlife.ERP.DataAccess.D_PurchaseOrder.getbvpv(pro);
        }
    }
}